package com.moss.system.service;


import com.moss.common.domain.TreeEntity;
import com.moss.common.entity.SysMenuEntity;
import com.moss.common.vo.menu.RouterVO;

import java.util.List;
import java.util.Set;

public interface MenuService {

    Set<String> selectMenuPermsByUserId(String userId);

    List<SysMenuEntity> selectMenuListByUserId(String userId);

    List<RouterVO> buildMenus(List<SysMenuEntity> menus);

    List<SysMenuEntity> selectMenuList(SysMenuEntity menu, String userId);

    List<TreeEntity> buildMenu2Tree(List<SysMenuEntity> menus);

    List<Long> selectMenuIdListByRoleId(Long roleId);

    SysMenuEntity selectMenuById(Long menuId);

    void saveMenu(SysMenuEntity menu);

    void updateMenu(SysMenuEntity menu);

    void deleteMenu(Long menuId);
}
